﻿@model IEnumerable<Citi.Scheduler.WebUi.Models.RoutineRequisiteModel>
<table class="table table-bordered table-striped" style="width: 90% !important;">
    <tr>
        <th>
            Group
        </th>
        <th>
            Configuration
        </th>
        <th>
        </th>
    </tr>
    @if (!Model.Any())
    {
        <tr><td colspan="3">No parameters set</td></tr>
    }
    else
    {
        foreach (var item in Model)
        {
            <tr>
                <td>@Html.DisplayFor(modelItem => item.Configuration.ConfigurationGroup.Name)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Configuration.Name)
                </td>
                <td>
                    @*@Html.ActionLink("Delete", "Delete", new { id = item.Id })*@
                    @Ajax.ActionLink("Delete", "Delete", new {id = item.Id},
                                     new AjaxOptions {UpdateTargetId = "routineConfigurationList", Confirm = "Are you sure?", OnComplete = "updateAvailableMachines"},
                                     new {@class = "icon-trash", title = "Delete"})
                </td>
            </tr>
        }
    }
</table>
